﻿$(function () {
    var MyStatus = "Ok";
    $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=range.json&callback=?', function (data) {

        $('#container').highcharts({
            chart: {
                type: 'spline',
                zoomType: 'x'
            },

            title: {
                text: 'Sample data'
            },
            subtitle: {
                text: 'Click and drag in the plot area to zoom in'
            },

            xAxis: {
                type: 'datetime'
            },

            yAxis: {
                title: {
                    text: null
                }
            },

            tooltip: {
                crosshairs: true,
                shared: true,
                valueSuffix: '°C'
            },
            plotOptions: {
                spline: {
                    lineWidth: 2,
                    states: {
                        hover: {
                            lineWidth: 3
                        }
                    },
                    marker: {
                        enabled: false,
                        states: {
                            hover: {
                                enabled: true,
                                symbol: 'circle',
                                radius: 6,
                                lineWidth: 3
                            }
                        }
                    },
                    //pointInterval: 3600000, // one hour
                    pointInterval: 3000, //three second
                    pointStart: Date.UTC(2009, 9, 6, 0, 0, 0)
                }
            },


            legend: {
                enabled: false
            },

            series: [{
                name: 'Temperatures',
                data: data
            }]

        });
    });

});